import request from 'src/axios'

/**
 * @description 分页查询库存信息列表
 * @param { Object } params 查询参数
 * @returns Promise
 */
export const pageStock = (params: object) => {
  return request.get('/wms/stock/page', { params })
}

/**
 * @description 入库
 * @param { Object } data 入库参数
 * @returns Promise
 */
 export const inStock = (data: object) => {
  return request.post('/wms/stock/in', data)
}

/**
 * @description 出库
 * @param { Object } data 出库参数
 * @returns Promise
 */
 export const outStock = (data: object) => {
  return request.post('/wms/stock/out', data)
}
